package com.mz.mattress.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mz.mattress.api.entity.PlanDate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PlanDateMapper extends BaseMapper<PlanDate> {

    Page<PlanDate> listPage(Page page,
                            @Param("dates") String dates);

    @Select("select * from mz_plan_date where dates=#{dates} and deleted=0 limit 1")
    PlanDate selectByDates(@Param("dates") String dates);

}
